package com.itheima.stock.mapper;

import com.itheima.stock.pojo.domain.DescribeDomain;
import com.itheima.stock.pojo.entity.StockBusiness;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author hyx
* @description 针对表【stock_business(主营业务表)】的数据库操作Mapper
* @createDate 2024-05-22 20:50:24
* @Entity com.itheima.stock.pojo.entity.StockBusiness
*/
public interface StockBusinessMapper {

    int deleteByPrimaryKey(String id);

    int insert(StockBusiness record);

    int insertSelective(StockBusiness record);

    StockBusiness selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBusiness record);

    int updateByPrimaryKey(StockBusiness record);

    List<String> getStockCodes();

    List<Map> searchStock(@Param("searchStr") String searchStr);


    DescribeDomain getDescribe(@Param("code") String code);
}
